package com.hcy.rabbitbasicutils.utils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

/**
 * @Author huchenying
 * @Description
 * @Date 2021/12/23 17:46
 */
public class SnowFlake {

    public static String getId(){
        Snowflake snowflake = IdUtil.createSnowflake(1,1);
        String s = snowflake.nextIdStr();
        System.out.println(s);
        return s;
    }
}
